package com.commute.android;

import java.util.Calendar;

import android.app.Activity;
import android.os.Bundle;
import android.view.Menu;
import android.widget.TextView;

public class EventActivity extends Activity {

	@Override
	protected void onCreate(Bundle savedInstanceState) {
		super.onCreate(savedInstanceState);
		setContentView(R.layout.activity_event);
		
		
		TextView title = (TextView) findViewById(R.id.data_field_event_title);
		TextView start = (TextView) findViewById(R.id.data_field_event_start);
		TextView end = (TextView) findViewById(R.id.data_field_event_end);
		TextView location = (TextView) findViewById(R.id.data_field_event_location);
	
		Bundle extras = getIntent().getExtras();
		
		String text_title = extras.getString("EXTRA_EVENT_TITLE");
		String text_start = extras.getString("EXTRA_EVENT_START");
		String text_end = extras.getString("EXTRA_EVENT_END");
		String text_location = extras.getString("EXTRA_EVENT_LOCATION");
		
		title.setText(text_title);
		start.setText(text_start);
		end.setText(text_end);
		location.setText(text_location);
		
		
		/*String text_title = extras.getString("EXTRA_EVENT_TITLE");
		String text_start = extras.getString("EXTRA_EVENT_START");
		String text_end = extras.getString("EXTRA_EVENT_END");
		String text_location = extras.getString("EXTRA_EVENT_LOCATION");
		
		title.setText(text_title);
		start.setText(text_start);
		end.setText(text_end);
		location.setText(text_location);	*/
		
		
		
	}

	@Override
	public boolean onCreateOptionsMenu(Menu menu) {
		// Inflate the menu; this adds items to the action bar if it is present.
		getMenuInflater().inflate(R.menu.activity_event, menu);
		return true;
	}

}
